Skip to content

fix: resolve JSX runtime in telegram-guide test#399

Merged
hsteude merged 1 commit into
mainfrom
issue-397
May 13, 2026
Merged

fix: resolve JSX runtime in telegram-guide test#399
hsteude merged 1 commit into
mainfrom
issue-397

Conversation

@hsteude
Copy link
Copy Markdown
Contributor

@hsteude hsteude commented May 4, 2026

Summary

  • Extract telegram setup guide constants into a separate .ts file to avoid importing JSX-containing modules in tests
  • Test now imports from the plain TypeScript constants file, avoiding the react/jsx-dev-runtime resolution error

Closes #397

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Extracts the constants previously embedded in the SolidJS telegram-setup-guide.tsx component into a new plain TypeScript file so that the test suite can import them without triggering Bun's JSX runtime resolution (which was attempting to resolve react/jsx-dev-runtime for the SolidJS component).

Changes:

  • New telegram-setup-guide-constants.ts holds TELEGRAM_READINESS_CHECKS, TELEGRAM_GUIDE_COMMANDS, TELEGRAM_GUIDE_SECTIONS, TELEGRAM_GUIDE_TITLE, and TELEGRAM_GUIDE_REQUIRED_KEYS.
  • telegram-setup-guide.tsx imports the constants and re-exports them for backward compatibility.
  • The test file imports the constants from the new .ts module instead of the .tsx component.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
app-prefixable/src/components/telegram-setup-guide-constants.ts New module containing the extracted, JSX-free constants.
app-prefixable/src/components/telegram-setup-guide.tsx Removes inline constants, imports from the new module, and re-exports them.
app-prefixable/tests/telegram-guide.test.tsx Updates the import path to the new constants module to avoid JSX runtime resolution.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@hsteude hsteude merged commit 694d52b into main May 13, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix telegram-guide.test.tsx: Cannot find module react/jsx-dev-runtime

2 participants